package org.nfIt.dao.impl;

import jdk.jfr.Percentage;
import org.nfIt.dao.BookDao;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * ClossName:BookDaoImpl
 * Pakage:org.nfIt.dao.impl
 * Description
 *
 * @Author L
 * @Create 2024/5/3 0:04
 * @Version 2023.1.3
 */

@Repository("BooDao")
public class BookDaoImpl implements BookDao {
    @Override
    public void say() {
        System.out.println("BooDao 执行了");
    }
    @PostConstruct
    public void init() {
        System.out.println("init 执行了");
    }
    @PreDestroy
    public void destroy() {
        System.out.println("destroy 执行了");
    }
}
